export interface FormFieldConfig {
  label: string
  type: string
  placeholder?: string
  extra?: string
  tooltip?: string
  rules?: any[]
  options?: { value: any; label: string; key?: string }[] | any
  mode?: 'multiple' | 'tags'
  min?: number
  max?: number
  step?: number
  addonBefore?: any
  addonAfter?: any
  searchFn?: (value: string) => Promise<{ value: any; label: string; key?: string }[]>
  defaultValue?: any
  disabled?: boolean|Function
  picker?: "year" | "month" | "quarter" | "week" | "date";
}

export type FormField = {
  name: string
} & FormFieldConfig
